home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
prolog
/
ai.prl
/
opnprlg1.hqx
/
Open Prolog
/
Open Prolog.rsrc
/
CODE_20_current_op.txt
< prev
next >
Wrap
Text File
|
1993-04-15
|
12KB
|
227 lines
# near model CODE resource
# entry label at 0x0000
export_397:
entry:
label00000000:
00000000 08EA 0007 0025 bset.b [A2 + 0x25], 0x7
00000006 6622 bne +0x24 /* 0000002A */
00000008 257C 0000 004C 0050 move.l [A2 + 0x50], 0x4C /* 'L' */
00000010 257C 0000 0008 0054 move.l [A2 + 0x54], 0x8
00000018 08AA 0000 005C bclr.b [A2 + 0x5C], 0x0
0000001E 08AA 0001 005C bclr.b [A2 + 0x5C], 0x1
00000024 256D E8A8 0058 move.l [A2 + 0x58], [A5 - 0x1758]
label0000002A:
0000002A 4E56 FEFC link A6, -0x0104
0000002E 426E FFFE clr.w [A6 - 0x2]
00000032 4CEA 0003 0030 movem.l D1,D0, [A2 + 0x30]
00000038 4A80 tst.l D0
0000003A 6F10 ble +0x12 /* 0000004C */
0000003C 0C80 0000 0020 cmpi.l D0, 0x20 /* ' ' */
00000042 6600 020C bne +0x20E /* 00000250 */
00000046 08EE 0002 FFFE bset.b [A6 - 0x2], 0x2
label0000004C:
0000004C 4CEA 0003 0038 movem.l D1,D0, [A2 + 0x38]
00000052 4A80 tst.l D0
00000054 6F10 ble +0x12 /* 00000066 */
00000056 0C80 0000 0018 cmpi.l D0, 0x18
0000005C 6600 01F2 bne +0x1F4 /* 00000250 */
00000060 08EE 0001 FFFE bset.b [A6 - 0x2], 0x1
label00000066:
00000066 4CEA 0003 0040 movem.l D1,D0, [A2 + 0x40]
0000006C 4A80 tst.l D0
0000006E 6F10 ble +0x12 /* 00000080 */
00000070 0C80 0000 0018 cmpi.l D0, 0x18
00000076 6600 01D8 bne +0x1DA /* 00000250 */
0000007A 08EE 0000 FFFE bset.b [A6 - 0x2], 0x0
label00000080:
00000080 6010 bra +0x12 /* 00000092 */
00000082 0001 0005 ori.b D1, 0x5
00000086 0009 0101 ori.b A1, 0x1
0000008A 0021 0021 ori.b -[A1], 0x21 /* '!' */
0000008E 0011 0101 ori.b [A1], 0x1
label00000092:
00000092 7000 moveq.l D0, 0x00
00000094 102E FFFE move.b D0, [A6 - 0x2]
00000098 D040 add.w D0, D0
0000009A 303B 00E6 move.w D0, [PC + D0.w - 0x1A]
0000009E 0800 0008 btst.b D0, 0x8
000000A2 6700 005C beq +0x5E /* 00000100 */
000000A6 08EA 0001 005C bset.b [A2 + 0x5C], 0x1
000000AC 2400 move.l D2, D0
000000AE 206A 0044 movea.l A0, [A2 + 0x44]
000000B2 D1ED E8A8 add.l A0, [A5 - 0x1758]
000000B6 43EE FEFC lea.l A1, [A6 - 0x104]
000000BA 4EAD 08DA jsr [A5 + 0x8DA]
000000BE 32BC 0002 move.w [A1], 0x2
000000C2 222A 003C move.l D1, [A2 + 0x3C]
000000C6 B2AD F1F0 cmp.l D1, [A5 - 0xE10]
000000CA 6710 beq +0x12 /* 000000DC */
000000CC B2AD F1E8 cmp.l D1, [A5 - 0xE18]
000000D0 670A beq +0xC /* 000000DC */
000000D2 B2AD F1F8 cmp.l D1, [A5 - 0xE08]
000000D6 6704 beq +0x6 /* 000000DC */
000000D8 32BC 0001 move.w [A1], 0x1
label000000DC:
000000DC 4240 clr.w D0
000000DE 4EAD 0892 jsr [A5 + 0x892]
000000E2 6500 0170 bcs +0x172 /* 00000254 */
000000E6 2040 movea.l A0, D0
000000E8 D1ED E8A8 add.l A0, [A5 - 0x1758]
000000EC 2002 move.l D0, D2
000000EE 6000 0066 bra +0x68 /* 00000156 */
000000F2 0800 0002 btst.b D0, 0x2
000000F6 6708 beq +0xA /* 00000100 */
000000F8 222A 0044 move.l D1, [A2 + 0x44]
000000FC 6000 003E bra +0x40 /* 0000013C */
label00000100:
00000100 0800 0005 btst.b D0, 0x5
00000104 6708 beq +0xA /* 0000010E */
00000106 222A 0034 move.l D1, [A2 + 0x34]
0000010A 6000 0030 bra +0x32 /* 0000013C */
label0000010E:
0000010E 0800 0003 btst.b D0, 0x3
00000112 6710 beq +0x12 /* 00000124 */
00000114 222A 003C move.l D1, [A2 + 0x3C]
00000118 4EAD 0D8A jsr [A5 + 0xD8A]
0000011C E149 lsl D1.w, 8
0000011E EB49 lsl D1.w, 5
00000120 6000 001A bra +0x1C /* 0000013C */
label00000124:
00000124 0800 0004 btst.b D0, 0x4
00000128 6712 beq +0x14 /* 0000013C */
0000012A 4CEA 0002 003C movem.l D1, [A2 + 0x3C]
00000130 4EAD 0D8A jsr [A5 + 0xD8A]
00000134 E149 lsl D1.w, 8
00000136 EB49 lsl D1.w, 5
00000138 D2AA 0034 add.l D1, [A2 + 0x34]
label0000013C:
0000013C 206A 0058 movea.l A0, [A2 + 0x58]
00000140 082A 0000 005C btst.b [A2 + 0x5C], 0x0
00000146 6612 bne +0x14 /* 0000015A */
00000148 08AA 0000 005C bclr.b [A2 + 0x5C], 0x0
0000014E 4EAD 0D7A jsr [A5 + 0xD7A]
00000152 6500 00FC bcs +0xFE /* 00000250 */
label00000156:
00000156 2548 0058 move.l [A2 + 0x58], A0
label0000015A:
0000015A 0800 0002 btst.b D0, 0x2
0000015E 6626 bne +0x28 /* 00000186 */
00000160 43EE FEFC lea.l A1, [A6 - 0x104]
00000164 4EAD 08DA jsr [A5 + 0x8DA]
00000168 4251 clr.w [A1]
0000016A 4240 clr.w D0
0000016C 4EAD 087A jsr [A5 + 0x87A]
00000170 2200 move.l D1, D0
00000172 7018 moveq.l D0, 0x18
00000174 4CEA 000C 0040 movem.l D3,D2, [A2 + 0x40]
0000017A 4EAD 0D42 jsr [A5 + 0xD42]
0000017E 6900 00AC bvs +0xAE /* 0000022C */
00000182 6500 00D0 bcs +0xD2 /* 00000254 */
label00000186:
00000186 2008 move.l D0, A0
00000188 226D E8A8 movea.l A1, [A5 - 0x1758]
0000018C 9089 sub.l D0, A1
0000018E 4EAD 08C2 jsr [A5 + 0x8C2]
00000192 6500 00C0 bcs +0xC2 /* 00000254 */
00000196 0C28 0001 0007 cmpi.b [A0 + 0x7], 0x1
0000019C 660A bne +0xC /* 000001A8 */
0000019E 086A 0000 005C bchg.b [A2 + 0x5C], 0x0
000001A4 6702 beq +0x4 /* 000001A8 */
000001A6 5480 addq.l D0, 2
label000001A8:
000001A8 3031 0800 move.w D0, [A1 + D0]
000001AC 6700 00A6 beq +0xA8 /* 00000254 */
000001B0 3D40 FFFC move.w [A6 - 0x4], D0
000001B4 7200 moveq.l D1, 0x00
000001B6 1228 0007 move.b D1, [A0 + 0x7]
000001BA 7020 moveq.l D0, 0x20
000001BC 4CEA 000C 0048 movem.l D3,D2, [A2 + 0x48]
000001C2 4EAD 0D42 jsr [A5 + 0xD42]
000001C6 6500 008C bcs +0x8E /* 00000254 */
000001CA 302E FFFC move.w D0, [A6 - 0x4]
000001CE 0280 0000 1FFF andi.l D0, 0x1FFF
000001D4 2200 move.l D1, D0
000001D6 7020 moveq.l D0, 0x20
000001D8 4CEA 000C 0030 movem.l D3,D2, [A2 + 0x30]
000001DE 4EAD 0D42 jsr [A5 + 0xD42]
000001E2 6500 0070 bcs +0x72 /* 00000254 */
000001E6 322E FFFC move.w D1, [A6 - 0x4]
000001EA E049 lsr D1.w, 8
000001EC EA49 lsr D1.w, 5
000001EE 4EAD 0D92 jsr [A5 + 0xD92]
000001F2 7018 moveq.l D0, 0x18
000001F4 4CEA 000C 0038 movem.l D3,D2, [A2 + 0x38]
000001FA 4EAD 0D42 jsr [A5 + 0xD42]
000001FE 6500 0054 bcs +0x56 /* 00000254 */
00000202 4E5E unlink A6
00000204 082A 0001 005C btst.b [A2 + 0x5C], 0x1
0000020A 6712 beq +0x14 /* 0000021E */
0000020C 082A 0000 005C btst.b [A2 + 0x5C], 0x0
00000212 660A bne +0xC /* 0000021E */
00000214 B5ED E868 cmpa.l A2, [A5 - 0x1798]
00000218 6604 bne +0x6 /* 0000021E */
0000021A 2B52 E868 move.l [A5 - 0x1798], [A2]
label0000021E:
0000021E 7460 moveq.l D2, 0x60
00000220 357C 0002 0006 move.w [A2 + 0x6], 0x2
00000226 7600 moveq.l D3, 0x00
00000228 4EED 0532 jmp [A5 + 0x532]
label0000022C:
0000022C 4E5E unlink A6
0000022E 2F3C 0000 000D move.l -[A7], 0xD /* '\r' */
00000234 42A7 clr.l -[A7]
00000236 42A7 clr.l -[A7]
00000238 42A7 clr.l -[A7]
0000023A 487A 004A pea.l [PC + 0x4A /* 00000286, pstring "system$current$op" */]
0000023E 3F3C 0004 move.w -[A7], 0x4
00000242 4EAD 0D3A jsr [A5 + 0xD3A]
00000246 301B move.w D0, [A3]+
00000248 3036 000C move.w D0, [A6 + D0.w + 0xC]
0000024C 4EF6 000C jmp [A6 + D0.w + 0xC]
label00000250:
00000250 2B52 E868 move.l [A5 - 0x1798], [A2]
label00000254:
00000254 082A 0001 005C btst.b [A2 + 0x5C], 0x1
0000025A 6704 beq +0x6 /* 00000260 */
0000025C 2B52 E868 move.l [A5 - 0x1798], [A2]
label00000260:
00000260 357C 0002 0006 move.w [A2 + 0x6], 0x2
00000266 4E5E unlink A6
00000268 4EED 00F2 jmp [A5 + 0xF2]
0000026C 4E5E unlink A6
0000026E 4E75 rts
00000270 9342 subx.w D1, D2
00000272 2573 7973 7465 6D2E 6375 7272 656E move.l [A2 + 0x656E], [[A3 + 0x74656D2E] + 0x63757272]
00000280 742E moveq.l D2, 0x2E
00000282 6F70 ble +0x72 /* 000002F4 */
00000284 0000 1173 ori.b D0, 0x73 /* 's' */
00000288 7973 moveq.l D4, 0x73
0000028A 7465 moveq.l D2, 0x65
0000028C 6D24 blt +0x26 /* 000002B2 */
0000028E 6375 bls +0x77 /* 00000305 */
00000290 7272 moveq.l D1, 0x72
00000292 656E bcs +0x70 /* 00000302 */
00000294 7424 moveq.l D2, 0x24
00000296 6F70 ble +0x72 /* 00000308 */
export_398:
00000298 4EFA FD66 jmp [PC - 0x29A /* 00000000 */]
0000029C 4E5E unlink A6
0000029E 4E75 rts
000002A0 8D42 2563 pack D6, D2, 0x2563
000002A4 7572 moveq.l D2, 0x72
000002A6 7265 moveq.l D1, 0x65
000002A8 6E74 bgt +0x76 /* 0000031E */
000002AA 5F6F 7020 subq.w [A7 + 0x7020], 7
000002AE 0000 4EFA ori.b D0, 0xFA
export_399: // at 000002B0 (misaligned)
label000002B2:
000002B2 FD4E .extension 0xD4E // unimplemented
000002B4 4E5E unlink A6
000002B6 4E75 rts
000002B8 8D42 2563 pack D6, D2, 0x2563
000002BC 7572 moveq.l D2, 0x72
000002BE 7265 moveq.l D1, 0x65
000002C0 6E74 bgt +0x76 /* 00000336 */
000002C2 5F6F 7020 subq.w [A7 + 0x7020], 7
000002C6 0000 .incomplete